package com.dz.order;

import com.dz.common.utils.IdWorker;
import org.modelmapper.ModelMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @ClassName :
 * @Description :
 * @Author : ming
 * @Date: 2020-11-30 15:33
 **/
@SpringCloudApplication
@EnableFeignClients
public class OrderApplication
{
    public static void main( String[] args ) {
        SpringApplication.run(OrderApplication.class,args);
    }

    @Bean
    public ModelMapper modelMapper(){
        return new ModelMapper();
    }
    @Bean
    public IdWorker idWorker(){return new IdWorker();}
}
